package com.education.platform.common.web;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * 统一响应实体
 * @param <T>
 */
@ApiModel()
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ResponseEntity<T> implements Serializable {

    /**
     * 响应编码
     */
    @ApiModelProperty(name="code",value="响应结果编码")
    private int code;
    /**
     * 响应
     */
    @ApiModelProperty(name="message",value="响应描述信息")
    private String message;

    private T data;

}
